﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.ViewModels
{
    public class HardWareDeviceViewModel
    {
        public int Id { get; set; }
        [Display(Name = "设备名称")]
        public string Name { get; set; }
        
        public string DeviceId { get; set; }
        [Display(Name = "设备状态")]
        public int Status { get; set; }
        /// <summary>
        /// 设备位置ip
        /// </summary>
        [Display(Name = "设备位置")]
        public string Location { get; set; }

        /// <summary>
        /// 开门方向
        /// </summary>
        [Display(Name = "通行方向")]
        public int Direction { get; set; }

        [Display(Name = "设备sn")]
        public string DeviceSn { get; set; }


        public string State { get; set; }
        [Display(Name = "组")]
        [Required(ErrorMessage = "请选择一个组")]
        public string GroupIds { get; set; }
    }
}
